<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:template match="Schema">using System;
using System.ComponentModel;
namespace <xsl:value-of select="@NameSpace" />
{
  public class Dictionarys
  {
  <xsl:for-each select="DicType[@EnumName!='']">
    /// &lt;summary&gt;
    /// <xsl:value-of select="@Memo" />
    /// &lt;/summary&gt;
    public enum <xsl:value-of select="@EnumName" /> : short
    {
      <xsl:for-each select="Dic[@EnumName!='']">
      /// &lt;summary&gt;
      /// <xsl:value-of select="@DisplayName" /><xsl:if test="@Memo!=''">：</xsl:if><xsl:value-of select="@Memo" />
      /// &lt;/summary&gt;
      [Description("<xsl:value-of select="@DisplayName" />")]        
      <xsl:value-of select="@EnumName" /> = <xsl:value-of select="@DictionaryValue" /><xsl:if test="position()!=last()">,</xsl:if>
    </xsl:for-each>
    }
  </xsl:for-each>
  }
}
</xsl:template>
</xsl:stylesheet>